Use GetViewPath method to retrieve the path to the current view. Path contains a safe array of strings. Views refer to the main Preview Tab and drill down tabs that appear in the Report Viewer as the user interacts with the report.
Function GetViewPath ( Index As Integer )
Parameter | Description |
---|---|
Specifies the 1 |
Returns a safe array of strings indicating the path to the current view, if the call is successful.
Use the following code as an example of how to use GetViewPath.
Dim vPath As Variant
Dim vString As String
Dim x As Integer
Dim y As Integer
Dim counter As Integer
vPath = CRViewer1.GetViewPath(userEnteredInteger)
x = Lbound(vPath)
y = Ubound(vPath)
For counter = x To y
If vString <> "" Then
vString = vString & ":"
End If
vString = vString & vPath(counter)
Next counter
ViewPathName.Caption = "View path is: " & vString
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |